/*boolean flag=true;
        Message message=(Message)obj;
        for(Map.Entry<String,ObservableList<Message>> entry:ShareData.MessageMap.entrySet()){
        if (entry.getKey().equals(message.getSendAccount())){
        entry.getValue().add(message);
        flag=false;
        break;
        }
        }
        if(flag){
        Friend friend = null;
        ChatWindow chatWindow=new ChatWindow();
        List<Friend> friendList=ShareData.UserDataMap.get(message.getReceiveAccount()).getFriendList();
        for(int i=0;i<friendList.size();i++){
        if (friendList.get(i).getFriendAccount().equals(message.getSendAccount())){
        friend=friendList.get(i);
        break;
        }
        }
        chatWindow.setFriend(friend);
        chatWindow.getMessageData().add(message);
        ShareData.MessageMap.put(friend.getFriendAccount(),chatWindow.getMessageData());
        }*/